package org.dromara.system.domain.bo;

import org.dromara.system.domain.WorkApprovalFlow;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 作业审批流转记录业务对象 work_approval_flow
 *
 * @author Lion Li
 * @date 2025-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WorkApprovalFlow.class, reverseConvertGenerate = false)
public class WorkApprovalFlowBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 关联作业ID
     */
    private Long zyid;

    /**
     * 作业类型: 1-动火,2-受限空间,3-盲板抽堵,4-高处,5-吊装,6-临时用电,7-动土,8-断路
     */
    private Long zylx;

    /**
     * 流程节点名称
     */
    private String lcjd;

    /**
     * 处理人员名称
     */
    private String clry;

    /**
     * 处理意见
     */
    private String clyj;

    /**
     * 处理时间
     */
    private Date clsj;

    /**
     * 火种残留情况: 1-无残留, 2-有存留
     */
    @NotNull(message = "火种残留情况: 1-无残留, 2-有存留不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long hzclqk;

    /**
     * 签名图片
     */
    @NotBlank(message = "签名图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String qmtp;


}
